#pragma once

#include <set>
#include "CarCmd.h"
#include "TemplateName.h"
#include "Component.h"

using namespace std;

class LaserRadar: public Component {
    friend class TemplateCenter;
    private:
        // 订阅者列表 
        set<string> subscriberSet;
        LaserRadar();
        LaserRadar(Component* const component);
        bool addSubscriber(const string &name);
        string getAllSubscriber();
        string updataInfo();
    public:
        ~LaserRadar();
        string getInfo();
        void doAsCommend(string cmd);
};


